import axios from '@/utils/http'
export const addCart = ({ goodsId, count, ...data }) => {
  return axios.get(`/cart/addToCart/${goodsId}/${count}`,data)
}
export const getCartList = () => {
  return axios.get('/cart/getCartList')
}
export const updateChecked = (goodsId, isChecked) => {
  return axios.get(`/cart/checkCart/${goodsId}/${isChecked}`)
}
export const getIsCheckedAll = (isChecked) => {
  return axios.get(`/cart/checkAllCart/${isChecked}`)
}
export const deleteGoods = (goodsId) => {
  return axios.get(`/cart/delete/${goodsId}`)
}